<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:ctg="http://www.crotouristguide.com/taglib">

<ui:component>
	<rich:dataDefinitionList id="lastObjaveList" rows="5"
		value="#{lastObjave}" var="objava">
		<s:div>
			<h4><h:outputLink rendered="#{objava.objekt != null}"
				value="#{application.contextPath}/guides/objekti/objekt.seam">
				<f:param name="idObjekta" value="#{objava.objekt.idObjekta}" />
				<f:param name="title"
					value="#{titleAction.getUrlTitle(objava.objekt)}" />
				<f:param name="l" value="#{currentLang}" />
				<h:outputText
					value=" #{objava.objekt.tipObjekta.naziv} #{objava.objekt.naziv}: " />
			</h:outputLink>
			<h:outputText value="#{objava.naslov}" />
			<h:outputLink rendered="#{objava.mjesto != null}"
				value="#{application.contextPath}/guides/mjesta/mjesto.seam">
				<f:param name="idMjesta" value="#{objava.mjesto.idMjesta}" />
				<f:param name="l" value="#{currentLang}" />
				<f:param name="title" value="#{titleAction.getUrlTitle(mjesto)}" />
				<h:outputText value=" #{objava.mjesto.naziv}" />
			</h:outputLink>
			<h:outputLink rendered="#{objava.otok != null}"
				value="#{application.contextPath}/guides/otoci/otok.seam">
				<f:param name="idOtoka" value="#{objava.otok.idOtoka}" />
				<f:param name="l" value="#{currentLang}" />
				<f:param name="title" value="#{titleAction.getUrlTitle(otok)}" />
				<h:outputText value=" #{objava.otok.naziv}" />
			</h:outputLink>
			<h:outputLink rendered="#{objava.park != null}"
				value="#{application.contextPath}/guides/parkovi/park.seam">
				<f:param name="idParka" value="#{objava.park.idParka}" />
				<f:param name="l" value="#{currentLang}" />
				<f:param name="title"
					value="#{titleAction.getUrlTitle(objava.park)}" />
				<h:outputText value=" #{objava.park.naziv}" />
			</h:outputLink></h4>
			<p><h:outputText value="#{objava.tekst}" /> <h:outputLink
				value="http://#{objava.www}" styleClass="new-window">
				<h:outputText value="#{messages['label.link.more']}"></h:outputText>
			</h:outputLink>
			<span class="note"><h:outputText
				value="#{messages['label.edit.by']}" /> <ctg:nbsp /> <h:outputText
				value="#{objava.korisnik.username}" /> <ctg:nbsp /> <h:outputText
				value="#{messages['label.objektfeedback.on']}" /> <ctg:nbsp /> <h:outputText
				value="#{objava.datum}" /></span></p>
		</s:div>
		<br/>
	</rich:dataDefinitionList>
	<h:outputLink value="#{application.contextPath}/guides/home.seam"
		styleClass="ul">
		<f:param name="l" value="#{currentLang}" />
		<h:outputText value="#{messages['label.link.more.from_web']}" />
	</h:outputLink>
</ui:component>

</html>